﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MarvellousWorks.PracticalPattern.FactoryMethod.GenericFactory
{
    public abstract class FactoryBase<T> : IFactory<T> where T : new()
    {
        /// <summary>
        /// 由于批量工厂使用的概率比较小，默认实现单个产品的工厂
        /// </summary>
        /// <returns></returns>
        public virtual T Create()
        {
            return new T();
        }
    }


}
